class ManagementController < ApplicationController
  protect_from_forgery :secret => 'my-little-pony', :except => :index
  def addBlog
    server =  MetaWeblogClient.new("happybai","123bltmld","www.cnblogs.com","/happybai/services/metaweblog.aspx")
    post = { :title => "测试博客1", :description => "这是一条测试的博客程序"}
    ok,param = server.newPost(post, false)
    puts "the ok value is :"
    puts ok
    puts "the param value is :"
    puts param
    render action: "add"
  end
end
